<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生夜宵点餐系统 - 注册</title>
    <link rel="stylesheet" href="../css/style.css">
</head>
<body>
    <div class="container">
        <div class="register-box">
            <h2>用户注册</h2>
            <form id="registerForm">
                <div class="form-group">
                    <label for="username">用户名：</label>
                    <input type="text" id="username" name="username" required>
                </div>
                
                <div class="form-group">
                    <label for="password">密码：</label>
                    <input type="password" id="password" name="password" required>
                </div>
                
                <div class="form-group">
                    <label for="confirmPassword">确认密码：</label>
                    <input type="password" id="confirmPassword" name="confirmPassword" required>
                </div>
                
                <div class="form-group">
                    <label for="contact">联系方式：</label>
                    <input type="text" id="contact" name="contact" required>
                </div>
                
                <div class="form-group">
                    <label>角色选择：</label>
                    <div class="role-select">
                        <input type="radio" id="student" name="role" value="学生" checked>
                        <label for="student">学生</label>
                        
                        <input type="radio" id="delivery" name="role" value="配送员">
                        <label for="delivery">配送员</label>
                    </div>
                </div>
                
                <div class="form-group" id="addressGroup">
                    <label for="address">地址：</label>
                    <input type="text" id="address" name="address" required>
                </div>
                
                <button type="submit" class="btn-register">注册</button>
            </form>
            
            <div class="login-link">
                <p>已有账号？<a href="login.html">返回登录</a></p>
            </div>
        </div>
    </div>
    
    <script src="../js/register.js"></script>
</body>
</html>